using System.Net;
using System.Net.Sockets;

namespace WebServer.BusinessLogic.Communication
{
    public interface ISocketWrapper
    {
        EndPoint RemoteEndPoint { get; }
        int ReceiveBufferSize { get; }
        int Receive(int bufferSize, SocketFlags flags);

        int Send(byte[] data);

        byte[] Buffer { get; }

        bool Connected { get; }
        void Shutdown(SocketShutdown how);
        void Close();
    }
}